package com.csdj.essay.service;

import com.csdj.essay.entity.AttquesComment;
import com.csdj.essay.mapper.AttquesCommentMapper;
import com.csdj.essay.service.IAttquesCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 评论表(问题和文章) 服务实现类
 * </p>
 *
 * @author 刘宇
 * @since 2022-03-17
 */
@Service
public class AttquesCommentService extends ServiceImpl<AttquesCommentMapper, AttquesComment> implements IAttquesCommentService {
    @Resource
    private AttquesCommentMapper attquesCommentMapper;
    /**
     * 查询问题评论条数
     * @return
     */
    @Override
    public int comment() {
        int jg = attquesCommentMapper.comment();
        return jg;
    }
}
